package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.TravelComment;
import cn.wolfcode.luowowo.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

public interface ITravelCommentService {
    /**
     * 查单个
     * @param id
     * @return
     */
    TravelComment get(String id);

    /**
     * 查询分页结果集
     * @param qo
     * @return
     */
    Page<TravelComment> query(TravelCommentQuery qo);

    /**
     * 在攻略中添加评论
     * @param comment
     */
    void addComment(TravelComment comment);

    /**
     * 攻略里的评论点赞
     * @param cid 评论id
     * @param uid 当前用户id
     */
    void commentThumb(String cid, String uid);
}
